package com.tqfframe.website.web.entry;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * Created by Tang-QiFeng on 2020/6/30
 */
@Data
@TableName("tqf_user")
public class TestEntity {
    @TableId(type = IdType.AUTO)//主键增长+1
    private Integer id;
    private String username;
    private String password;
    private Integer sex;
    // 插入时填充字段
    @TableField(fill = FieldFill.INSERT)
    private Date create_time;
    // 更新或者插入时填充字段
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date update_time;
}
